/**
 * @author janet
 * @date 2015-5-13
 */
package net.oscorner.commons;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;


/**
 * @author janet
 * @date 2015-5-13 下午1:47:07
 * 
 */

public class BaseController {
	public void printContent(String content,HttpServletResponse response){
		response.setCharacterEncoding(ConstantUtil.CODESET_UTF8);
		try {
			PrintWriter out = response.getWriter();
			out.print(content);
			out.flush();
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
